package com.example.houduan.demos.web.controller;

import com.example.houduan.demos.web.mapper.SalaryMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/salary")
public class SalaryController {

    @Resource
    private SalaryMapper salaryMapper;

    @RequestMapping("/getAll")
    public Object getAll()
    {
        return salaryMapper.findAll();
    }
    @RequestMapping("/getById")
    public Object getById(String _id)
    {
        return salaryMapper.getByid(_id);
    }
}
